package com.clt.ess.gjzw.domain.applyRandom;

import java.io.Serializable;

//获取随机数接口返回业务参数
public class ApplyRandomResponse implements Serializable {
    //命令编码 applyRandom
    //必须
    private String taskCode;
    //版本号 1.0
    //必须
    private String version;
    //返回值，0 表示成功，其他表示错误
    //必须
    private String resultCode;
    //返回信息描述
    //必须
    private String resultCodeMsg;
    //国家政务服务平台电子印章信任支撑系统产生随机数，长度为 16 个字节
    //必须
    private String randomB;

    /**
     {
         "taskCode ":"applyRandom ",
         "version ":"1.0",
         "resultCode":"0",
         "resultCodeMsg":"随机数申请成功",
         "randomB":"1234567890123456"
     }
     */

    public ApplyRandomResponse() {
    }

    public ApplyRandomResponse(String taskCode, String version, String resultCode, String resultCodeMsg, String randomB) {
        this.taskCode = taskCode;
        this.version = version;
        this.resultCode = resultCode;
        this.resultCodeMsg = resultCodeMsg;
        this.randomB = randomB;
    }

    public String getTaskCode() {
        return taskCode;
    }

    public void setTaskCode(String taskCode) {
        this.taskCode = taskCode;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public String getResultCode() {
        return resultCode;
    }

    public void setResultCode(String resultCode) {
        this.resultCode = resultCode;
    }

    public String getResultCodeMsg() {
        return resultCodeMsg;
    }

    public void setResultCodeMsg(String resultCodeMsg) {
        this.resultCodeMsg = resultCodeMsg;
    }

    public String getRandomB() {
        return randomB;
    }

    public void setRandomB(String randomB) {
        this.randomB = randomB;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("{");
        sb.append("\"taskCode\":\"")
                .append(taskCode).append('\"');
        sb.append(",\"version\":\"")
                .append(version).append('\"');
        sb.append(",\"resultCode\":\"")
                .append(resultCode).append('\"');
        sb.append(",\"resultCodeMsg\":\"")
                .append(resultCodeMsg).append('\"');
        sb.append(",\"randomB\":\"")
                .append(randomB).append('\"');
        sb.append('}');
        return sb.toString();
    }
}
